Updated the wiki snapshot from the official wiki
[geda-gaf/peter-b.git] / symbols / Makefile.am
blob5898f5c8629e2649da3f8ac9ec8b8f927cf035fd
1 symbol_dirs = \
2         4000 \
3         74 \
4         IEC417 \
5         allegro \
6         altera \
7         amphenol \
8         analog \
9         apex \
10         asic \
11         asicpads \
12         bus \
13         cascade \
14         connector \
15         dec \
16         diode \
17         ecl \
18         gnetman \
19         idt \
20         io \
21         irf \
22         lattice \
23         linear \
24         local \
25         maxim \
26         memory \
27         micro \
28         minicircuits \
29         misc \
30         national \
31         opto \
32         philips \
33         pla \
34         power \
35         radio \
36         relay \
37         rf \
38         spice \
39         st \
40         supervisor \
41         switcap \
42         switch \
43         titleblock \
44         transistor \
45         tube \
46         verilog \
47         vhdl \
48         xilinx
50 SUBDIRS = documentation
52 gafrcddir = $(GEDADATADIR)/gafrc.d
53 dist_gafrcd_DATA = geda-clib.scm
55 datasymdir = $(GEDADATADIR)/sym
56 nobase_dist_datasym_DATA = \
57         vhdl/verilog2vhdl.sh vhdl/script.sed
59 EXTRA_DIST = ChangeLog ChangeLog-1.0 \
60         radio/README AUTHORS
62 if HAVE_GIT_REPO
63 ChangeLog: $(top_builddir)/stamp-git
64         (cd $(srcdir) && $(GIT) log --pretty=medium $(CHANGELOG_BASE).. -- .) > $@
65 endif HAVE_GIT_REPO
67 # Copies symbols into distribution
68 dist-hook:
69         @for lib in $(symbol_dirs); do \
70           $(MKDIR_P) $(distdir)/$$lib && \
71           list=`(ls $(srcdir)/$$lib) | grep '.[Ss][Yy][Mm]$$'`; \
72           for file in $$list; do \
73             cp -p $(srcdir)/$$lib/$$file $(distdir)/$$lib || exit $$?; \
74           done; \
75         done;
77 # Installs symbols
78 install-data-local:
79         @$(NORMAL_INSTALL)
80         @for lib in $(symbol_dirs); do \
81           d="$(DESTDIR)$(datasymdir)/$$lib"; \
82           $(MKDIR_P) "$$d"; \
83           list=`(ls $(srcdir)/$$lib) | grep '.[Ss][Yy][Mm]$$'`; \
84           if test -n "$$list"; then \
85             echo " ( cd $(srcdir)/$$lib && $(INSTALL_DATA)" $$list "'$$d' )"; \
86             (cd $(srcdir)/$$lib && $(INSTALL_DATA) $$list "$$d") || exit $$?; \
87           fi; \
88         done
90 # Uninstalls symbols
91 uninstall-local:
92         @$(NORMAL_UNINSTALL)
93         @for lib in $(symbol_dirs); do \
94           d="$(DESTDIR)$(datasymdir)/$$lib"; \
95           list=`(ls $(srcdir)/$$lib) | grep '\.[Ss][Yy][Mm]$$'`; \
96           if test -n "$$list"; then \
97             echo " ( cd '$$d' && rm -f" $$list ")"; \
98             (cd "$$d" && rm -f $$list) || exit $$?; \
99           fi; \
100         done
102 MOSTLYCLEANFILES = *.log *~
103 CLEANFILES = *.log *~
104 DISTCLEANFILES = *.log core FILE *~
105 MAINTAINERCLEANFILES = *.log *~ Makefile.in ChangeLog