2 # gEDA/gaf Toplevel Makefile
6 # Change this to the real version of the distribution
11 # Use this when you are building the CVS version
17 # Use this when you are building the Released version (comment out above)
19 #CD_VERSION=-$(VERSION)
23 # Set this to the location where you want to install gEDA/gaf
28 # You can set any global options you want here to be passed to the
29 # individual ./configure scripts
34 # Set this to the shell that you want the various commands to run in.
35 # For most people the default should work just fine.
39 ############################################################################
41 ############################################################################
44 @echo
$(VERSION
) $(CD_VERSION
) $(DIR_PREFIX
)
45 @echo
"gEDA Toplevel Makefile"
46 @echo
"This Makefile requires libgeda, symbols, gschem, gnetlist,"
47 @echo
"gattrib, gsymcheck, utils, docs, and examples source tarball packages"
48 @echo
"untarred in this: `pwd` directory"
52 @echo
"${MAKE} install Installs gEDA/gaf into $(prefix)"
53 @echo
"${MAKE} uninstall Uninstall gEDA/gaf from $(prefix)"
54 @echo
"${MAKE} clean Simple clean only (remove all .o and bins)"
55 @echo
"${MAKE} open Opens up all gEDA/gaf tarballs in base directory"
57 @echo
"These targets are primarily used by the developers:"
58 @echo
"${MAKE} reconfig Recreate ./configure (and all Makefiles)"
59 @echo
"${MAKE} maint Total maintenance clean"
60 @echo
"${MAKE} distcheck Create distribution (using make distcheck)"
61 @echo
"${MAKE} distconfig Create dist ./configure (and all Makefiles)"
62 @echo
"${MAKE} distclean Does a make distclean in each subdir"
63 @echo
"${MAKE} config Just do the ./configure --prefix=${prefix}"
64 @echo
"${MAKE} proto Recreate all prototype.h files"
65 @echo
"${MAKE} dist Create distribution (using make dist)"
66 @echo
"${MAKE} src Create all *.c files from *.nw files"
67 @echo
"${MAKE} all Just build. Do not use! Run make install"
70 @echo
"---------------------------READ THIS---------------------------"
71 @echo
"Before executing any of the above targets, set the below shell"
72 @echo
"variables. The build process _will fail_ if you do not set"
73 @echo
"these variables! You will also need to set these variables to"
74 @echo
"run the programs."
76 @echo
"gEDA/gaf will be installed into ${prefix}"
78 @echo
"For vanilla bourne shells:"
79 @echo LD_LIBRARY_PATH
=${prefix}/lib
:\
$$LD_LIBRARY_PATH
80 @echo
"export LD_LIBRARY_PATH"
81 @echo PATH
=${prefix}/bin
:\
$$\
{PATH\
}
83 @echo PKG_CONFIG_PATH
=${prefix}/lib
/pkgconfig
:\
$$PKG_CONFIG_PATH
84 @echo
"export PKG_CONFIG_PATH"
87 @echo
export LD_LIBRARY_PATH
=${prefix}/lib
:\
$$LD_LIBRARY_PATH
88 @echo
export PATH
=${prefix}/bin
:\
$$\
{PATH\
}
89 @echo
export PKG_CONFIG_PATH
=${prefix}/lib
/pkgconfig
:\
$$PKG_CONFIG_PATH
91 @echo
"For csh/tcsh shell:"
92 @echo setenv LD_LIBRARY_PATH
${prefix}/lib
:\
$$LD_LIBRARY_PATH
93 @echo setenv PATH
${prefix}/bin
:\
$$PATH
94 @echo setenv PKG_CONFIG_PATH
${prefix}/lib
/pkgconfig
:\
$$PKG_CONFIG_PATH
96 @echo
"---------------------------READ THIS---------------------------"
98 ##----------------------------------------------------------------------
99 ## SDB notes: To create a gEDA distribution, do this (in this order):
101 ## 2. make reconfig <-- This is entry point when you download from CVS
102 ## (i.e. start with "make reconfig")
104 ## ---> At this point you can do "make install" if you want
105 ## to install gEDA on your machine.
107 ## "Make dist" will leave tarballs of the various parts of the suite in
108 ## the base directory. Note that you have to change the $VERSION
109 ## of each program in the configure.ac in each directory. In principle,
110 ## you can check that "make dist" worked by doing:
112 ## "make distcheck" will create a set of tarballs and untar, configure,
113 ## compile and run make check in each directory.
115 ## Note that you need to have the autotools installed; if you are not a
116 ## developer or you don't know what the autotools are, you probably
117 ## shouldn't do this. You're forewarned!
118 ##----------------------------------------------------------------------
120 # This installs libgeda and symbols and just builds gschem and gnetlist
121 all: libgeda symbols gschem gnetlist gattrib gsymcheck utils docs examples
123 # This builds and installs all of gEDA/gaf
124 install: symbols_install libgeda_install gschem_install gnetlist_install \
125 gattrib_install gsymcheck_install \
126 utils_install docs_install examples_install
128 # This uninstalls all of gEDA/gaf
129 uninstall: utils_uninstall gsymcheck_uninstall gattrib_uninstall \
130 gnetlist_uninstall gschem_uninstall symbols_uninstall \
131 libgeda_uninstall docs_uninstall examples_uninstall
133 # This target assumes you have all .tar.gz files present in your local directory.
134 # It opens them up using tar -zxvf. Afterwards you can do
135 # "make install" to install your gEDA distribution.
146 # This does a maintainer-clean removes EVERYTHING that's config/built
147 maint
: libgeda_maint symbols_maint gschem_maint gnetlist_maint gattrib_maint \
148 gsymcheck_maint utils_maint docs_maint \
151 # This does a plain clean
152 clean: libgeda_clean symbols_clean gschem_clean gnetlist_clean gattrib_clean \
153 gsymcheck_clean utils_clean docs_clean \
156 # This does a dist clean
157 distclean: libgeda_distclean symbols_distclean gschem_distclean \
158 gnetlist_distclean gattrib_distclean gsymcheck_distclean \
159 utils_distclean docs_distclean examples_distclean
161 # This just does the appropriate ./configure --prefix=...
162 config
: libgeda_config symbols_config gschem_config gnetlist_config \
163 gattrib_config gsymcheck_config utils_config docs_config \
166 # This recreates all ./configure scripts and Makefile.in files
167 reconfig
: libgeda_reconfig symbols_reconfig gschem_reconfig gnetlist_reconfig \
168 gattrib_reconfig gsymcheck_reconfig utils_reconfig \
169 docs_reconfig examples_reconfig
171 # This creates all *.c files from *.nw files
172 src
: libgeda_src gschem_src
174 # This recreates all ./configure scripts and Makefile.in files ready
175 # for distribution (removes dependency checking)
176 distconfig
: libgeda_distconfig symbols_distconfig gschem_distconfig \
177 gnetlist_distconfig gattrib_distconfig gsymcheck_distconfig \
178 utils_distconfig docs_distconfig \
181 dist: libgeda_dist symbols_dist gschem_dist \
182 gnetlist_dist gattrib_dist gsymcheck_dist utils_dist \
183 docs_dist examples_dist
184 mv
-f libgeda
/libgeda
*.
tar.gz .
185 mv
-f symbols
/geda-symbols
*.
tar.gz .
186 mv
-f gschem
/geda-gschem
*.
tar.gz .
187 mv
-f gnetlist
/geda-gnetlist
*.
tar.gz .
188 mv
-f gattrib
/geda-gattrib
*.
tar.gz .
189 mv
-f gsymcheck
/geda-gsymcheck
*.
tar.gz .
190 mv
-f utils
/geda-utils
*.
tar.gz .
191 mv
-f docs
/geda-docs
*.
tar.gz .
192 mv
-f examples
/geda-examples
*.
tar.gz .
194 distcheck
: libgeda_distcheck symbols_distcheck gschem_distcheck \
195 gnetlist_distcheck gattrib_distcheck gsymcheck_distcheck \
196 utils_distcheck docs_distcheck examples_distcheck
197 mv
-f libgeda
/libgeda
*.
tar.gz .
198 mv
-f symbols
/geda-symbols
*.
tar.gz .
199 mv
-f gschem
/geda-gschem
*.
tar.gz .
200 mv
-f gnetlist
/geda-gnetlist
*.
tar.gz .
201 mv
-f gattrib
/geda-gattrib
*.
tar.gz .
202 mv
-f gsymcheck
/geda-gsymcheck
*.
tar.gz .
203 mv
-f utils
/geda-utils
*.
tar.gz .
204 mv
-f docs
/geda-docs
*.
tar.gz .
205 mv
-f examples
/geda-examples
*.
tar.gz .
207 # This recreates all ./configure scripts and Makefile.in files
208 proto
: libgeda_proto gschem_proto gnetlist_proto gattrib_proto gsymcheck_proto
210 ############################################################################
212 ############################################################################
215 symbols
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/configure
216 @echo symbols Installed
218 symbols_maint
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/system-gafrc
219 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} maintainer-clean
)
221 symbols_clean
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/system-gafrc
222 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} clean )
224 symbols_distclean
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/system-gafrc
225 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} distclean )
227 symbols_install
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/configure \
228 $(DIR_PREFIX
)symbols
$(CD_VERSION
)/Makefile
229 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} install )
231 symbols_uninstall
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/system-gafrc
232 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} uninstall )
234 symbols_config
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/configure
235 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); \
236 .
/configure
--prefix=$(prefix) $(opts
) )
239 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); .
/autogen.sh
)
242 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); .
/autogen.sh
)
245 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} dist )
247 symbols_distcheck
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/configure \
248 $(DIR_PREFIX
)symbols
$(CD_VERSION
)/Makefile
249 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} distcheck
)
252 gschem
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/configure \
253 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h \
254 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/src
/gschem
257 gschem_install
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/configure \
258 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h \
259 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/src
/gschem
260 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} install )
262 gschem_uninstall
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
263 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} uninstall )
265 gschem_config
: libgeda-pc-install \
266 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/configure
267 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); \
268 .
/configure
--prefix=$(prefix) $(opts
) )
271 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); .
/autogen.sh
)
274 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
)/src
; ${MAKE} src
)
277 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); .
/autogen.sh
)
280 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} dist )
282 gschem_distcheck
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/configure \
283 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
284 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} distcheck
)
286 gschem_maint
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
287 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} maintainer-clean
)
289 gschem_clean
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
290 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} clean )
292 gschem_distclean
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
293 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} distclean )
295 gschem_proto
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
296 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
)/src
; ${MAKE} proto
)
299 gnetlist
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/configure \
300 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h \
301 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/src
/gnetlist
304 gnetlist_install
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/configure \
305 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h \
306 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/src
/gnetlist
307 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} install )
309 gnetlist_uninstall
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
310 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} uninstall )
312 gnetlist_maint
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
313 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} maintainer-clean
)
315 gnetlist_clean
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
316 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} clean )
318 gnetlist_distclean
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
319 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} distclean )
321 gnetlist_proto
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
322 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/src
; ${MAKE} proto
)
324 gnetlist_config
: libgeda-pc-install \
325 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/configure
326 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); \
327 .
/configure
--prefix=$(prefix) $(opts
) )
330 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); .
/autogen.sh
)
333 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); .
/autogen.sh
)
336 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} dist )
338 gnetlist_distcheck
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/configure \
339 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
340 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} distcheck
)
343 gattrib
: $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/configure \
344 $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/config.h \
345 $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/src
/gattrib
348 gattrib_install
: $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/configure \
349 $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/config.h \
350 $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/src
/gattrib
351 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); ${MAKE} install )
353 gattrib_uninstall
: $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/config.h
354 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); ${MAKE} uninstall )
356 gattrib_maint
: $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/config.h
357 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); ${MAKE} maintainer-clean
)
359 gattrib_clean
: $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/config.h
360 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); ${MAKE} clean )
362 gattrib_distclean
: $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/config.h
363 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); ${MAKE} distclean )
365 gattrib_proto
: $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/config.h
366 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
)/src
; ${MAKE} proto
)
368 gattrib_config
: libgeda-pc-install \
369 $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/configure
370 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); \
371 .
/configure
--prefix=$(prefix) $(opts
) )
374 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); .
/autogen.sh
)
377 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); .
/autogen.sh
)
380 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); ${MAKE} dist )
382 gattrib_distcheck
: $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/configure \
383 $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/config.h
384 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); ${MAKE} distcheck
)
387 gsymcheck
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/configure \
388 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h \
389 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/src
/gsymcheck
390 @echo gsymcheck Built
392 gsymcheck_install
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/configure \
393 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h \
394 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/src
/gsymcheck
395 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} install )
397 gsymcheck_uninstall
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
398 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} uninstall )
400 gsymcheck_config
: libgeda-pc-install \
401 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/configure
402 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); \
403 .
/configure
--prefix=$(prefix) $(opts
) )
406 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); .
/autogen.sh
)
408 gsymcheck_distconfig
:
409 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); .
/autogen.sh
)
412 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} dist )
414 gsymcheck_distcheck
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/configure \
415 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
416 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} distcheck
)
418 gsymcheck_maint
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
419 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} maintainer-clean
)
421 gsymcheck_clean
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
422 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} clean )
424 gsymcheck_distclean
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
425 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} distclean )
427 gsymcheck_proto
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
428 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/src
; ${MAKE} proto
)
431 utils
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/configure \
432 $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h \
433 $(DIR_PREFIX
)utils
$(CD_VERSION
)/src
/gmk_sym
436 utils_install
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/configure \
437 $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h \
438 $(DIR_PREFIX
)utils
$(CD_VERSION
)/src
/gmk_sym
439 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} install )
441 utils_uninstall
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
442 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} uninstall )
444 utils_config
: libgeda-pc-install \
445 $(DIR_PREFIX
)utils
$(CD_VERSION
)/configure
446 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); \
447 .
/configure
--prefix=$(prefix) $(opts
) )
450 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); .
/autogen.sh
)
453 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); .
/autogen.sh
)
456 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} dist )
458 utils_distcheck
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/configure \
459 $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
460 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} distcheck
)
462 utils_maint
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
463 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} maintainer-clean
)
465 utils_clean
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
466 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} clean )
468 utils_distclean
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
469 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} distclean )
472 geda
: geda
$(CD_VERSION
)/configure \
473 geda
$(CD_VERSION
)/config.h \
474 geda
$(CD_VERSION
)/src
/geda
477 geda_install
: geda
$(CD_VERSION
)/configure \
478 geda
$(CD_VERSION
)/config.h \
479 geda
$(CD_VERSION
)/src
/geda
480 ( cd geda
$(CD_VERSION
); ${MAKE} install )
482 geda_uninstall
: geda
$(CD_VERSION
)/config.h
483 ( cd geda
$(CD_VERSION
); ${MAKE} uninstall )
485 geda_config
: geda
$(CD_VERSION
)/configure
486 ( cd geda
$(CD_VERSION
); \
487 .
/configure
--prefix=$(prefix) $(opts
) )
490 ( cd geda
$(CD_VERSION
); .
/autogen.sh
)
493 ( cd geda
$(CD_VERSION
); .
/autogen.sh
)
496 ( cd geda
$(CD_VERSION
); ${MAKE} dist )
498 geda_distcheck
: geda
$(CD_VERSION
)/configure \
499 geda
$(CD_VERSION
)/config.h
500 ( cd geda
$(CD_VERSION
); ${MAKE} distcheck
)
502 geda_maint
: geda
$(CD_VERSION
)/config.h
503 ( cd geda
$(CD_VERSION
); ${MAKE} maintainer-clean
)
505 geda_clean
: geda
$(CD_VERSION
)/config.h
506 ( cd geda
$(CD_VERSION
); ${MAKE} clean )
508 geda_distclean
: geda
$(CD_VERSION
)/config.h
509 ( cd geda
$(CD_VERSION
); ${MAKE} distclean )
512 setup
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/configure \
513 $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h \
514 $(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup
517 # Do not install the setup program, just build it
518 setup_install
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/configure \
519 $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h \
520 $(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup
521 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} )
523 # No reason to do this, if you are not installing setup
524 setup_uninstall
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
525 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} )
527 setup_config
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/configure
528 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); \
529 .
/configure
--prefix=$(prefix) $(opts
) )
532 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); .
/autogen.sh
)
535 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); .
/autogen.sh
)
538 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} dist )
540 setup_distcheck
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/configure \
541 $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
542 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} distcheck
)
544 setup_maint
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
545 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} maintainer-clean
)
547 setup_clean
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
548 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} clean )
550 setup_distclean
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
551 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} distclean )
553 # libgeda (has no $(DIR_PREFIX)
554 libgeda
: libgeda
$(CD_VERSION
)/configure \
555 libgeda
$(CD_VERSION
)/config.h \
556 libgeda
$(CD_VERSION
)/src
/.libs
/libgeda.a
557 @echo libgeda Installed
559 libgeda_maint
: libgeda
$(CD_VERSION
)/config.h
560 ( cd libgeda
$(CD_VERSION
); ${MAKE} maintainer-clean
)
562 libgeda_clean
: libgeda
$(CD_VERSION
)/config.h
563 ( cd libgeda
$(CD_VERSION
); ${MAKE} clean )
565 libgeda_distclean
: libgeda
$(CD_VERSION
)/config.h
566 ( cd libgeda
$(CD_VERSION
); ${MAKE} distclean )
568 libgeda_proto
: libgeda
$(CD_VERSION
)/config.h
569 ( cd libgeda
$(CD_VERSION
)/src
; ${MAKE} proto
)
571 libgeda_config
: libgeda
$(CD_VERSION
)/configure
572 ( cd libgeda
$(CD_VERSION
); .
/configure
--prefix=$(prefix) $(opts
) )
575 ( cd libgeda
$(CD_VERSION
); .
/autogen.sh
)
578 ( cd libgeda
$(CD_VERSION
)/src
; ${MAKE} src
)
581 ( cd libgeda
$(CD_VERSION
); .
/autogen.sh
)
584 ( cd libgeda
$(CD_VERSION
); ${MAKE} dist )
586 libgeda_distcheck
: libgeda
$(CD_VERSION
)/configure \
587 libgeda
$(CD_VERSION
)/config.h
588 ( cd libgeda
$(CD_VERSION
); ${MAKE} distcheck
)
590 libgeda_uninstall
: libgeda
$(CD_VERSION
)/config.h
591 ( cd libgeda
$(CD_VERSION
); ${MAKE} uninstall )
593 libgeda_install
: libgeda
$(CD_VERSION
)/configure \
594 libgeda
$(CD_VERSION
)/config.h
595 ( cd libgeda
$(CD_VERSION
); ${MAKE} install )
598 docs
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/configure \
599 $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile \
600 $(DIR_PREFIX
)docs
$(CD_VERSION
)/attributes
/attributes.pdf
603 docs_install
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/configure \
604 $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile \
605 $(DIR_PREFIX
)docs
$(CD_VERSION
)/attributes
/attributes.pdf
606 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} install )
608 docs_uninstall
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
609 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} uninstall )
611 docs_config
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/configure
612 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); \
613 .
/configure
--prefix=$(prefix) $(opts
) )
616 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); .
/autogen.sh
)
619 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); .
/autogen.sh
)
622 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} dist )
624 docs_distcheck
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/configure \
625 $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
626 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} distcheck
)
628 docs_maint
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
629 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} maintainer-clean
)
631 docs_clean
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
632 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} clean )
634 docs_distclean
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
635 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} distclean )
638 examples
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/configure \
639 $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
642 examples_install
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/configure \
643 $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
644 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} install )
646 examples_uninstall
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
647 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} uninstall )
649 examples_config
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/configure
650 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); \
651 .
/configure
--prefix=$(prefix) $(opts
) )
654 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); .
/autogen.sh
)
656 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); .
/autogen.sh
)
659 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} dist )
661 examples_distcheck
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/configure \
662 $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
663 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} distcheck
)
665 examples_maint
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
666 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} maintainer-clean
)
668 examples_clean
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
669 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} clean )
671 examples_distclean
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
672 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} distclean )
674 ############################################################################
675 # Configure related targets
676 ############################################################################
678 libgeda
$(CD_VERSION
)/config.h
:
679 ( cd libgeda
$(CD_VERSION
); .
/configure
--prefix=$(prefix) $(opts
) )
681 libgeda
$(CD_VERSION
)/configure
:
682 ( cd libgeda
$(CD_VERSION
); .
/autogen.sh
)
684 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
:
685 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); \
686 .
/configure
--prefix=$(prefix) $(opts
) )
688 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/configure
:
689 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); .
/autogen.sh
)
691 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
:
692 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); \
693 .
/configure
--prefix=$(prefix) $(opts
) )
695 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/configure
:
696 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); .
/autogen.sh
)
698 $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
:
699 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); \
700 .
/configure
--prefix=$(prefix) $(opts
) )
702 $(DIR_PREFIX
)utils
$(CD_VERSION
)/configure
:
703 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); .
/autogen.sh
)
705 geda
$(CD_VERSION
)/config.h
:
706 ( cd geda
$(CD_VERSION
); .
/configure
--prefix=$(prefix) $(opts
) )
708 geda
$(CD_VERSION
)/configure
:
709 ( cd geda
$(CD_VERSION
); .
/autogen.sh
)
711 $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
:
712 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); \
713 .
/configure
--prefix=$(prefix) $(opts
) )
715 $(DIR_PREFIX
)setup
$(CD_VERSION
)/configure
:
716 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); .
/autogen.sh
)
718 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
:
719 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); \
720 .
/configure
--prefix=$(prefix) $(opts
) )
722 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/configure
:
723 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); .
/autogen.sh
)
725 $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/config.h
:
726 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); \
727 .
/configure
--prefix=$(prefix) $(opts
) )
729 $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/configure
:
730 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); .
/autogen.sh
)
732 $(DIR_PREFIX
)symbols
$(CD_VERSION
)/system-gafrc
:
733 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); \
734 .
/configure
--prefix=$(prefix) $(opts
) )
736 $(DIR_PREFIX
)symbols
$(CD_VERSION
)/Makefile
:
737 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); \
738 .
/configure
--prefix=$(prefix) $(opts
) )
740 $(DIR_PREFIX
)symbols
$(CD_VERSION
)/configure
:
741 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); .
/autogen.sh
)
743 $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
:
744 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); \
745 .
/configure
--prefix=$(prefix) $(opts
) )
747 $(DIR_PREFIX
)docs
$(CD_VERSION
)/configure
:
748 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); .
/autogen.sh
)
750 $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
:
751 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); \
752 .
/configure
--prefix=$(prefix) $(opts
) )
754 $(DIR_PREFIX
)examples
$(CD_VERSION
)/configure
:
755 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); .
/autogen.sh
)
757 ############################################################################
758 # Executable related related targets
759 ############################################################################
761 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/src
/gschem
:
762 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} )
764 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/src
/gsymcheck
:
765 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} )
767 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/src
/gnetlist
:
768 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} )
770 $(DIR_PREFIX
)gattrib
$(CD_VERSION
)/src
/gattrib
:
771 ( cd
$(DIR_PREFIX
)gattrib
$(CD_VERSION
); ${MAKE} )
773 $(DIR_PREFIX
)utils
$(CD_VERSION
)/src
/gmk_sym
:
774 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} )
776 geda
$(CD_VERSION
)/src
/geda
:
777 ( cd geda
$(CD_VERSION
); ${MAKE} )
779 $(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup
:
780 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} )
782 $(DIR_PREFIX
)docs
$(CD_VERSION
)/attributes
/attributes.pdf
:
783 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} )
785 libgeda
$(CD_VERSION
)/src
/.libs
/libgeda.a
:
786 ( cd libgeda
$(CD_VERSION
); ${MAKE} install )
788 ############################################################################
789 # Script related related targets
790 ############################################################################
793 ( cd libgeda
$(CD_VERSION
); ${MAKE} libgeda-pc-install
)
796 ############################################################################
797 # Targets for opening up the tarballs
798 ############################################################################
800 geda_tarball
: geda
$(CD_VERSION
).
tar.gz
801 tar -zxvf geda
$(CD_VERSION
).
tar.gz
803 docs_tarball
: $(DIR_PREFIX
)docs
$(CD_VERSION
).
tar.gz
804 tar -zxvf
$(DIR_PREFIX
)docs
$(CD_VERSION
).
tar.gz
806 examples_tarball
: $(DIR_PREFIX
)examples
$(CD_VERSION
).
tar.gz
807 tar -zxvf
$(DIR_PREFIX
)examples
$(CD_VERSION
).
tar.gz
809 gattrib_tarball
: $(DIR_PREFIX
)gattrib
$(CD_VERSION
).
tar.gz
810 tar -zxvf
$(DIR_PREFIX
)gattrib
$(CD_VERSION
).
tar.gz
812 gnetlist_tarball
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
).
tar.gz
813 tar -zxvf
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
).
tar.gz
815 gschem_tarball
: $(DIR_PREFIX
)gschem
$(CD_VERSION
).
tar.gz
816 tar -zxvf
$(DIR_PREFIX
)gschem
$(CD_VERSION
).
tar.gz
818 gsymcheck_tarball
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
).
tar.gz
819 tar -zxvf
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
).
tar.gz
821 setup_tarball
: $(DIR_PREFIX
)setup
$(CD_VERSION
).
tar.gz
822 tar -zxvf
$(DIR_PREFIX
)setup
$(CD_VERSION
).
tar.gz
824 symbols_tarball
: $(DIR_PREFIX
)symbols
$(CD_VERSION
).
tar.gz
825 tar -zxvf
$(DIR_PREFIX
)symbols
$(CD_VERSION
).
tar.gz
827 utils_tarball
: $(DIR_PREFIX
)utils
$(CD_VERSION
).
tar.gz
828 tar -zxvf
$(DIR_PREFIX
)utils
$(CD_VERSION
).
tar.gz
830 libgeda_tarball
: libgeda
$(CD_VERSION
).
tar.gz
831 tar -zxvf libgeda
$(CD_VERSION
).
tar.gz