libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

one.mk (440B)


      1 PROG = $(TARG).out
      2 OFILES = $(OBJ:=.o)
      3 
      4 all: $(PROG)
      5 
      6 install: $(TARG).install
      7 uninstall: $(TARG).uninstall
      8 clean: oneclean
      9 depend: $(OBJ:=.depend)
     10 
     11 printinstall:
     12 	echo 'Install directories:'
     13 	echo '	Bin: $(BIN)'
     14 
     15 oneclean:
     16 	for i in $(PROG) $(OFILES); do \
     17 		[ -e $$i ] && \
     18 		echo CLEAN $$($(CLEANNAME) $(BASE)$$i); \
     19 		rm -f $$i; \
     20 	done 2>/dev/null || true
     21 
     22 $(OFILES): $(HFILES)
     23 
     24 $(PROG): $(OFILES) $(LIB)
     25 	$(LINK) $@ $(OFILES) $(LIB)
     26