setxbg

X11 background image
git clone https://git.porkepik.fr/setxbg
Log | Files | Refs | README | LICENSE

Makefile (426B)


      1 .POSIX:
      2 PREFIX = /usr/local
      3 CFLAGS = -O2 -std=c99 -Wall -Wextra -I/usr/X11R6/include
      4 LDFLAGS = -L/usr/X11R6/lib
      5 LDLIBS = -lX11 -lm
      6 SRC = setxbg.c
      7 BIN = setxbg
      8 
      9 $(BIN): $(SRC)
     10 	$(CC) $(CFLAGS) $(SRC) -o $(BIN) $(LDFLAGS) $(LDLIBS)
     11 
     12 clean:
     13 	rm -f $(BIN)
     14 
     15 install:
     16 	mkdir -p $(DESTDIR)$(PREFIX)/bin
     17 	cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
     18 	chmod 755 $(DESTDIR)$(PREFIX)/bin/$(BIN)
     19 
     20 uninstall:
     21 	rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)