summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-09-22 00:36:39 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-09-22 00:36:39 +0200
commitf212c9ef2c9479824308b3a5378e508d13020b46 (patch)
treed6e67e5116ff970e9bf159ad5ffc809007ee07fc /Makefile
downloadpacman-offline-f212c9ef2c9479824308b3a5378e508d13020b46.tar.gz
pacman-offline-f212c9ef2c9479824308b3a5378e508d13020b46.tar.zst
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..66c15c7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+# commands
+INSTALL := install
+LN := ln
+MD := markdown
+RM := rm
+SED := sed
+
+all: README.html
+
+%.html: %.md
+ $(MD) $< > $@
+ $(SED) -i 's/\(README[-[:alnum:]]*\).md/\1.html/g' $@
+
+install:
+ $(INSTALL) -D -m0755 bin/pacman-offline $(DESTDIR)/usr/bin/pacman-offline
+ $(INSTALL) -D -m0644 systemd/pacman-offline.service $(DESTDIR)/usr/lib/systemd/system/pacman-offline.service
+ $(INSTALL) -D -m0755 systemd/pacman-offline $(DESTDIR)/usr/lib/systemd/scripts/pacman-offline
+ $(INSTALL) -d -m0755 $(DESTDIR)/usr/lib/systemd/system/system-update.target.wants/
+ $(LN) -s ../pacman-offline.service $(DESTDIR)/usr/lib/systemd/system/system-update.target.wants/pacman-offline.service
+
+clean:
+ $(RM) -f README.html