Makefile - build site archive without root directory

This commit is contained in:
Nathan Fisher 2021-02-20 09:16:12 -05:00
parent 4b58f24c6b
commit e1303c4aab

View File

@ -2,12 +2,12 @@ subdirs += hhl
subdirs += handbook subdirs += handbook
site.txz: $(subdirs) site.txz: $(subdirs)
tar cJf $@ site cd site && tar -cJf ../$@ *
$(subdirs): $(subdirs):
$(MAKE) -C $@ $(MAKE) -C $@
clean: clean:
rm -rf site rm -rf site site.txz
.PHONY: $(subdirs) clean .PHONY: $(subdirs) clean