Makefile: dist target works again

For now, Make is dependent on being run inside of the git repository,
at least if something like `make VERSION=3.14` isn't used. Will be
nice in the future if it can read from the VERSION file as a fallback.
This commit is contained in:
Mike Swanson 2013-12-31 01:51:20 -08:00
parent b7b59b7ea1
commit 4619f5a4de
2 changed files with 39 additions and 44 deletions

View file

@ -26,6 +26,7 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
VERSION != git describe
WADS=wads
CPP=scripts/simplecpp
DEUTEX=deutex
@ -151,15 +152,13 @@ $(WADS)/freedoom_sounds.wad : wadinfo.txt force
rm -f $@
$(DEUTEX) $(DEUTEX_ARGS) -sounds -musics -build wadinfo.txt $@
dist : $(OBJS)
scripts/makepkgs $(OBJS)
doc:
doc: BUILD-SYSTEM.asc README.asc
asciidoc BUILD-SYSTEM.asc
asciidoc README.asc
dist: $(OBJS) doc
VERSION=$(VERSION) scripts/makepkgs $(OBJS)
clean:
rm -f *.html deutex.log $(OBJS) \
./wadinfo.txt ./wadinfo_sw.txt \