fmake

make any project just by typing `fmake`
git clone git@getsh.org:fmake.git
Log | Files | Refs | README | LICENSE

Makefile (463B)


      1 include config.mk
      2 
      3 # not nmake \
      4 !ifdef 0
      5 .DEFAULT_GOAL:=fmake
      6 # \
      7 !endif
      8 
      9 SOURCE = fmake.c config.h
     10 
     11 fmake.exe: $(SOURCE)
     12 	cl /nologo $(CFLAGS) fmake.c
     13 
     14 fmake: $(SOURCE)
     15 	$(CC) -o $@ $(CFLAGS) $(LDFLAGS) fmake.c
     16 
     17 clean:
     18 	-$(RM) fmake fmake.exe fmake.i fmake.pdb fmake.ilk fmake.obj
     19 
     20 install: fmake
     21 	mkdir -p $(DESTDIR)$(PREFIX)/bin
     22 	cp -f fmake $(DESTDIR)$(PREFIX)/bin
     23 	chmod 755 $(DESTDIR)$(PREFIX)/bin/fmake
     24 
     25 test:
     26 	@./fmake ENABLE_DEBUG=1
     27 
     28 .PHONY: test clean