moth/pwnables/Makefile

22 lines
411 B
Makefile
Raw Normal View History

2009-10-05 17:09:20 -06:00
CGI = cat.cgi
TARGET = $(CURDIR)/target
FAKE = fakeroot -s $(CURDIR)/fake -i $(CURDIR)/fake
INSTALL = $(FAKE) install
2009-10-07 22:57:32 -06:00
all: pwnables.tce
2009-10-06 12:06:30 -06:00
2009-10-07 22:57:32 -06:00
pwnables.tce: target
2009-10-06 12:06:30 -06:00
$(FAKE) sh -c 'cd target && tar -czf - --exclude=placeholder --exclude=*~ .' > $@
2009-10-05 17:09:20 -06:00
target:
$(INSTALL) -d $(TARGET)
2009-10-06 12:06:30 -06:00
(cd skel; tar cf - .) | (cd $(TARGET); tar xf -)
2009-10-05 17:09:20 -06:00
$(MAKE) -C daemons TARGET=$(TARGET) install
clean:
rm -rf target pwnables.tce