aboutsummaryrefslogtreecommitdiffstats
path: root/xorg-xrandr/setres/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-xrandr/setres/Makefile')
-rw-r--r--xorg-xrandr/setres/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/xorg-xrandr/setres/Makefile b/xorg-xrandr/setres/Makefile
index 770d45d..c14aa8a 100644
--- a/xorg-xrandr/setres/Makefile
+++ b/xorg-xrandr/setres/Makefile
@@ -1,17 +1,21 @@
all: setres
+__main__.py: __main__.py.gpp
+ gpp -s '%%' < $@.gpp > $@
+ chmod -- a+x "$@"
+
setres.zip: __main__.py get.py set.py
zip $@ $^
setres: setres.zip
echo '#!/usr/bin/python3' > $@
- cat setres.zip >> $@
- chmod a+x $@
+ cat -- setres.zip >> $@
+ chmod -- a+x $@
clean:
- -rm -r *.zip *.pyc __pycache__/ *~
+ -rm -rf -- *.zip *.pyc __main__.py __pycache__/ *~
reallyclean: clean
- -rm setres
+ -rm -f -- setres
.PHONY: all clean reallyclean