-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 729 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
stuff: .validate-stamp generate-stuff
@./generate-stuff
validate: .validate-stamp
upload: .upload-stamp
clean::
$(RM) .upload-stamp .validate-stamp validate-versions generate-stuff \
generate-htaccess .htaccess *.o *.hi
.PHONY: validate stuff upload clean
upload_files := .htaccess
.upload-stamp: .validate-stamp $(upload_files)
scp $(upload_files) people.freedesktop.org:public_html/
@touch $@
.validate-stamp: nvidia-versions.txt validate-versions
@./validate-versions
@touch $@
% : %.hs
ghc --make -dynamic $@
validate-versions: NVVersionParser.hs
generate-stuff: NVVersionParser.hs URLs.hs
generate-htaccess: NVVersionParser.hs
.htaccess: generate-htaccess nvidia-versions.txt
./generate-htaccess > $@