-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
90 lines (83 loc) · 3.42 KB
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
PREFIX = "/usr"
INSTALLDIR = "/share/games/fortunes"
DATADIR = "$(PREFIX)$(INSTALLDIR)"
BASEFILES_PROLINUX := \
1999.06 1999.10 1999.12\
2000.01 2000.02 2000.03 2000.04 2000.06 2000.07 2000.08\
2002.10 2002.11\
2007.05 2007.06 2007.07 2007.08 2007.09\
2008.04 2008.08 2008.12\
2009.01 2009.02 2009.03 2009.04 2009.05 2009.06 2009.07 2009.08 2009.09 2009.10 2009.11 2009.12\
2010.01 2010.02 2010.03 2010.04 2010.05 2010.06 2010.07 2010.08 2010.09 2010.11 2010.12\
2011.01 2011.02 2011.03 2011.04 2011.05 2011.06 2011.08 2011.09 2011.10 2011.11 2011.12\
2012.01\
2013.02\
2015.03 2015.04\
2016.05
BASEFILES_OPENPRESSE := \
sprachkurse pressestimmen breakingnews\
geek2dau programmhinweise 10dinge foren\
vermischtes gnome readme siekennendas irc
BASEFILES_LINUXFORUM := \
witze signaturen dau vertipper nicks\
vermischtes linuxforen ostereier
all: clean
@echo -n "GermanBash Cookies: "
@strfile germanbash germanbash.dat | gawk '/strings/{print $$3}'
@echo -n "Wii Homebrew Cookies: "
@strfile whb whb.dat | grep strings | gawk '{print $$3}'
@for FILE in $(BASEFILES_PROLINUX); do \
cat prolinux/$$FILE >> prolinux/prolinux ;\
done
@echo -n "ProLinux Cookies: "
@strfile prolinux/prolinux prolinux/prolinux.dat | gawk '/strings/{print $$3}'
@for FILE in $(BASEFILES_OPENPRESSE); do \
cat openpresse/$$FILE >> openpresse/openpresse ;\
done
@echo -n "OpenPresse Cookies: "
@strfile openpresse/openpresse openpresse/openpresse.dat | gawk '/strings/{print $$3}'
@for FILE in $(BASEFILES_LINUXFORUM); do \
cat linuxforum/$$FILE >> linuxforum/linuxforum ;\
done
@echo -n "LinuxForum Cookies: "
@strfile linuxforum/linuxforum linuxforum/linuxforum.dat | gawk '/strings/{print $$3}'
@echo -n "Der Postillon Cookies: "
@strfile postillon postillon.dat | gawk '/strings/{print $$3}'
@echo -n "Twitter Cookies: "
@strfile twitter twitter.dat | gawk '/strings/{print $$3}'
@echo -n "Franken Cookies: "
@strfile franken franken.dat | gawk '/strings/{print $$3}'
@echo -n "ITSchlager Cookies: "
@strfile itschlager itschlager.dat | gawk '/strings/{print $$3}'
clean:
@rm -f germanbash{.dat,~}
@rm -f whb{.dat,~}
@rm -f prolinux/{*.dat,prolinux,*~}
@rm -f openpresse/{*.dat,openpresse,*~}
@rm -f linuxforum/{*.dat,linuxforum,*~}
@rm -f linuxforum/{*.dat,linuxforum,*~}
@rm -f postillon{.dat,~}
@rm -f twitter{.dat,~}
@rm -f franken{.dat,~}
@rm -f itschlager{.dat,~}
install:
@mkdir -p $(DESTDIR)$(DATADIR)
@cp -v germanbash germanbash.dat $(DESTDIR)$(DATADIR)
@cp -v whb whb.dat $(DESTDIR)$(DATADIR)
@cp -v prolinux/prolinux prolinux/prolinux.dat $(DESTDIR)$(DATADIR)
@cp -v openpresse/openpresse openpresse/openpresse.dat $(DESTDIR)$(DATADIR)
@cp -v linuxforum/linuxforum linuxforum/linuxforum.dat $(DESTDIR)$(DATADIR)
@cp -v postillon postillon.dat $(DESTDIR)$(DATADIR)
@cp -v twitter twitter.dat $(DESTDIR)$(DATADIR)
@cp -v franken franken.dat $(DESTDIR)$(DATADIR)
@cp -v itschlager itschlager.dat $(DESTDIR)$(DATADIR)
uninstall:
@rm -f $(DESTDIR)$(DATADIR)/germanbash{,.dat}
@rm -f $(DESTDIR)$(DATADIR)/whb{,.dat}
@rm -f $(DESTDIR)$(DATADIR)/prolinux{,.dat}
@rm -f $(DESTDIR)$(DATADIR)/openpresse{,.dat}
@rm -f $(DESTDIR)$(DATADIR)/linuxforum{,.dat}
@rm -f $(DESTDIR)$(DATADIR)/postillon{,.dat}
@rm -f $(DESTDIR)$(DATADIR)/twitter{,.dat}
@rm -f $(DESTDIR)$(DATADIR)/franken{,.dat}
@rm -f $(DESTDIR)$(DATADIR)/itschlager{,.dat}