aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2006-11-02More sanitizations in Makefile (needs testing):roktas1-31/+31
+ Remove a bogus DOCS assignment line. + Cabal recreates pandoc executable by unnecessarily linking Main.o with library (it skips compiling *.hs files though). Since pandoc's time stamp is modified, it is copied from buildir to top directory, and also README.html is regenerated, each time a target which has a 'build' prerequisite is invoked. As a solution, now PHONY 'build' target depends on BUILDDIR/. + "THIS" variable has a confusing semantics and it is abusingly used in various targets. We in fact need it to specify package sub directories created during installation. Clarify this meaning by moving it to path variables section. + Create a new variable as MAIN which holds the main executable name. Sorry for my obsession to avoid simply using a magic "pandoc" name. :-) Modify all targets which (abusingly) refers to THIS and replace THIS with MAIN. Note that MAIN is derived from EXECS which in turn collects all executable names from Executable stanzas in cabal file. + As EXECS may hold more than one executable name, update EXECS target to reflect this semantic. + Rename BINS variable as PROGS and modify it so as to hold the names of all executables required to be installed. Remove bin_all local variable as PROGS can be used for the same purpose instead. + Modify DOCS variable so as to hold the names of all documents required to be installed. Remove doc_all local variable as DOCS can be used for the same purpose instead. + Remove DOCS target. README.html is already generated when needed. + Remove build-exec redundant prerequisite from osx_dest target. Make can find its way. + Set MAIN as the prerequisite of 'test' and 'test-markdown' to make things more clear. git-svn-id: https://pandoc.googlecode.com/svn/trunk@70 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-11-02Sanitize Makefile:roktas1-14/+31
+ Move $(BINS) target to a new PHONY 'build-exec' target. This should be used in all (non-build type) targets which refer BINS. Also, create a new 'build-program' target for user's convenience. + Update all targets so as to use build-exec (instead of BINS). + Use an explicit global DOCS variable which lists buildable documents; this makes our intention more clear. Also, for the sake of consistency, move BINS variable (which lists buildable executables) to a new section and create a redundant (for the moment, at least) EXECS variable. + Move all buildable target files in install-* targets to the related build-* targets. This mostly involves document files (e.g. README.hmtl). As a result, we now have a new build target 'build-doc' which builds main documents. This modification provides a clean separation between build and install type targets. git-svn-id: https://pandoc.googlecode.com/svn/trunk@69 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-11-02Make osx-dmg target depend on $(osx_dmg_name), so that if thefiddlosopher1-1/+2
dmg file has already been built, it does not build it again. git-svn-id: https://pandoc.googlecode.com/svn/trunk@68 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-11-02Changes related to osx packaging:fiddlosopher1-13/+7
+ Simplified osx-dmg target, which need not be built as root. + Made osx-pkg and osx-pkg-prep non-.PHONY, plus a few other minor changes to make the dependencies work correctly. + Removed \< from the sed regex in cabalize; this is not support in BSD sed. + Changed path information in osx/Welcome and message in uninstall-pandoc. git-svn-id: https://pandoc.googlecode.com/svn/trunk@67 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-11-01Various changes in osx-* targets.roktas1-13/+13
+ Exit 1 if permissions are not satisfied. + Make all targets PHONY. + Minor cosmetic fixes. git-svn-id: https://pandoc.googlecode.com/svn/trunk@63 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-11-01Added uninstall-pandoc script to Mac OS X package.fiddlosopher1-0/+1
Added information about uninstalling to Welcome message. git-svn-id: https://pandoc.googlecode.com/svn/trunk@62 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-11-01Changes to osx-pkg and osx-dmg targets.fiddlosopher1-8/+19
git-svn-id: https://pandoc.googlecode.com/svn/trunk@60 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-11-01Improved osx-dmg and osx-pkg targets in Makefile. fiddlosopher1-11/+29
git-svn-id: https://pandoc.googlecode.com/svn/trunk@59 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-31Revert all changes related to automatic ChangeLog creation.roktas1-17/+7
+ Remove ChangeLog and gnuify-changelog.pl + Remove 'package' target in Makefile. Minor unrelated cosmetic changes. git-svn-id: https://pandoc.googlecode.com/svn/trunk@52 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-31Improvements to Mac OS X package build:fiddlosopher1-1/+2
+ Add "pandoc" as bundle identifier to get rid of warning. + Remove old make_osx_pkg_dirs script, no longer needed because of make target. + Add OSX-Welcome, with information about adding /usr/local/bin to PATH. + Modify Makefile accordingly. git-svn-id: https://pandoc.googlecode.com/svn/trunk@51 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-31Improved osx-pkg target; added Info.plist and Description.plist.fiddlosopher1-5/+5
git-svn-id: https://pandoc.googlecode.com/svn/trunk@50 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-30osx-pkg target: install into Package_root subdirectory of osx_dest.fiddlosopher1-2/+2
git-svn-id: https://pandoc.googlecode.com/svn/trunk@48 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-30+ Revert changes in 'deb' target, add new target 'package' instead. This roktas1-2/+5
target updates ChangeLog and then create packages. + Minor fix 'ChangeLog' target, update ChangeLog. git-svn-id: https://pandoc.googlecode.com/svn/trunk@47 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-30Ensure that we have always up-to-date version of ChangeLog before creating roktas1-3/+10
a Debian package. Make 'ChangeLog' target PHONY to force an update. git-svn-id: https://pandoc.googlecode.com/svn/trunk@46 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-30Make debian/rules executable to avoid errors in 'distclean' target.roktas1-1/+4
git-svn-id: https://pandoc.googlecode.com/svn/trunk@45 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-30Modifications to create a nice ChangeLog.roktas1-0/+3
+ Add new file 'gnuify-changelog.pl' grabbed and adapted from subversion distribution. + Add 'ChangeLog' target to create/update ChangeLog. + Update current ChangeLog. git-svn-id: https://pandoc.googlecode.com/svn/trunk@44 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-30Add pandoc executable to process rules as a dependency. Make osx_dest, roktas1-12/+12
osx-pkg distinction more clear. git-svn-id: https://pandoc.googlecode.com/svn/trunk@42 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-30Parameterise "osx-pkg".roktas1-2/+2
git-svn-id: https://pandoc.googlecode.com/svn/trunk@41 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-30Add a 'osx-pkg' target for the creation of a Mac OSX® package (using roktas1-2/+30
PackageMaker.App). This target recursively uses 'install-program' target to populate OSX package directory tree. git-svn-id: https://pandoc.googlecode.com/svn/trunk@40 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-30* cabalize: fix cabal version detection by using a bloody hack.roktas1-2/+2
* Makefile: + Make 'uninstall-all' depends on 'uninstall-exec'. + Make the default target 'all' depends on $(BINS). Now, invoking a plain 'make' builds and creates pandoc in the top directory. git-svn-id: https://pandoc.googlecode.com/svn/trunk@39 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-29Remove 'install-lib', it causes too much trouble which needs to be dealed roktas1-22/+53
in ugly ways. + Now, we have 'install-program' and 'install-all' targets. The former installs only program and user documents, while the latter installs everything: program, user documents, library files and library documents. + Behaviour of 'install' target hasn't changed, it calls 'install-program'. + Update README accordingly. + Implement missing uninstall-* targets (including 'uninstall-all' and 'uninstall-program' for the new targets). + Call 'install-program' in debian/rules explicitly to prevent confusions. git-svn-id: https://pandoc.googlecode.com/svn/trunk@33 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-29Portability fix. Remove rmdir(1)'s '--ignore-fail-on-non-empty' option, as roktas1-1/+1
it is unsupported in BSD version. Note that the relevant line has already started with a '-' which means that make(1) will ignore any error. git-svn-id: https://pandoc.googlecode.com/svn/trunk@31 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-28Merge trunk with ghc66-branch.roktas1-31/+36
git-svn-id: https://pandoc.googlecode.com/svn/trunk@28 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-20* Fix man files installation so that we really ignore .svn directories.roktas1-8/+20
* Remove $datadir/doc/pandoc on uninstall-doc. Only this directory is removed since it's a cruft directory due to its name. I couldn't find a reliable method to remove other directories created on installation. * Use fakeroot when invoking dpkg-buildpackage. Improve warnings in 'deb' target. git-svn-id: https://pandoc.googlecode.com/svn/trunk@5 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-19Added markdown2html to bin_all.fiddlosopher1-1/+1
git-svn-id: https://pandoc.googlecode.com/svn/trunk@4 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-18As we are using subversion, ignore '.svn' directories when building debs.roktas1-2/+2
git-svn-id: https://pandoc.googlecode.com/svn/trunk@3 788f1e2b-df1e-0410-8736-df70ead52e1b
2006-10-17initial importfiddlosopher1-0/+146
git-svn-id: https://pandoc.googlecode.com/svn/trunk@2 788f1e2b-df1e-0410-8736-df70ead52e1b