Skip to content

Instantly share code, notes, and snippets.

@Pablo-Leon
Last active July 4, 2016 20:48
Show Gist options
  • Save Pablo-Leon/07499338ad68af102ce5a6e14a2c5d0d to your computer and use it in GitHub Desktop.
Save Pablo-Leon/07499338ad68af102ce5a6e14a2c5d0d to your computer and use it in GitHub Desktop.
#
# Makefile -- ...
#
SOURCE_FILES=
X_FILES=
PERL_EXE=/usr/bin/perl
.PHONY: all clean bkp chk
.SUFFIXES: .Rmd .html .scala .jar .pdf
# VPATH=data
all: hello
hello :
echo "Hello!."
clean:
-rm *.trc *.Rout *.log
bkp :
bak.pl $(SOURCE_FILES)
bak.pl $(X_FILES)
chk:
clear
for s in $(PERL_SOURCES); do $(PERL_EXE) -c $$s; done
for s in $(SCALA_SOURCES); do scala -Ystop-after:parser $$s; done
# for s in $(SCALA_SOURCES); do scala -Ystop-after:refchecks $$s; done
chk2: chk
clear
for s in $(PERL_SOURCES); do perlcritic --gentle $$s; done
x :
time echo "try something..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment