Commit ccab8dea authored by thomas.forbriger's avatar thomas.forbriger

Makefile [FEATURE]: support awk files too

parent 062549c5
......@@ -15,15 +15,19 @@ all:
cd software; $(MAKE) all
EDITFORTRAN=$(patsubst ./%,%,$(shell find . -name \*.f))
EDITBASH=$(patsubst ./%,%,$(shell find . -name \*.sh))
EDITAWK=$(patsubst ./%,%,$(shell find . -name \*.awk))
EDITMAKE=$(patsubst ./%,%,$(shell find . -name Makefile))
flist: Makefile README.md COPYING $(EDITFORTRAN) $(EDITMAKE)
echo $(filter-out $(EDITFORTRAN) $(EDITMAKE),$^) \
EDITCODE=$(EDITFORTRAN) $(EDITBASH) $(EDITAWK)
flist: Makefile README.md COPYING $(EDITCODE) $(EDITMAKE)
echo $(filter-out $(EDITCODE) $(EDITMAKE),$^) \
| tr ' ' '\n' | sort > $@
echo '----' >> $@
echo $(EDITMAKE) | tr ' ' '\n' | sort >> $@
echo '----' >> $@
echo $(EDITFORTRAN) | tr ' ' '\n' | sort >> $@
echo $(EDITCODE) | tr ' ' '\n' | sort >> $@
.PHONY: edit
edit: flist; vim $<
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment