← pagan-scripts

Commit 826f845

0
plików
+0
dodanych
-0
usuniętych
@@ -0,0 +1,22 @@
1 +CC = gcc
2 +CFLAGS = $(shell pkg-config --cflags gtk+-3.0) -O2
3 +LIBS = $(shell pkg-config --libs gtk+-3.0)
4 +
5 +all: pagan-installer pl.mo
6 +
7 +pagan-installer: installer.c
8 + $(CC) installer.c -o pagan-installer $(CFLAGS) $(LIBS)
9 +
10 +# Kompilacja tłumaczenia z formatu tekstowego do binarnego
11 +pl.mo: pl.po
12 + msgfmt -o pl.mo pl.po
13 +
14 +install: all
15 + install -Dm755 pagan-installer $(DESTDIR)/usr/bin/pagan-installer
16 + # Instalacja skryptu bashowego
17 + install -Dm755 pagan-install $(DESTDIR)/usr/bin/pagan-install
18 + # Instalacja pliku językowego w odpowiednim miejscu systemowym
19 + install -Dm644 pl.mo $(DESTDIR)/usr/share/locale/pl/LC_MESSAGES/pagan-installer.mo
20 +
21 +clean:
22 + rm -f pagan-installer *.mo